<template>
    <div>
        <h2>登录页面</h2>
        <button @click="loginClick">登录</button>
</div>
</template>
<script setup>
import { reactive ,ref} from 'vue'
import { useRouter } from 'vue-router';
const router = useRouter()
const loginClick = ()=>{
    console.log("点击登录");
    localStorage.setItem('token','inzv')
    router.push("/home")
}
</script>
<style  scoped>
    /*局部css 支持css3 可以改变elementUI组件的样式 且组件样式调整只在本页面生效**/
    /*主样式*/
</style>